package cn.wiseda.finance.dao.admin;

import java.util.List;

import cn.wiseda.finance.dao.util.JdbcBasicDao;
import cn.wiseda.finance.entity.admin.Menus;

public class MenusDao extends JdbcBasicDao {

	public List<Menus> getMenus() {
		String sql = "select * from t_menus";
		List<Menus> list = queryForBeans(sql, Menus.class);
		return list;
	}

	public List<Menus> getMenus(int parentId) {
		String sql = "select * from t_menus where parent_id=?";
		List<Menus> list = queryForBeans(sql, Menus.class, parentId);
		return list;
	}
}
